import { useParams } from 'react-router-dom';
import { useEffect, useState } from 'react';
import queryString from 'query-string';

/**
 * 获取路由查询参数
 * @returns
 */
const useRouteQuery = () => {
  const data = useParams();
  const { pathname, search } = data;
  console.log(data);
  return search;
};
export default useRouteQuery;
